﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<% String basepath = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>招聘管理系统</title>
    <link href="<%=basepath%>/resources/css/login.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="<%=basepath%>/resources/js/plugins/scrollbar/jquery.mCustomScrollbar.min.css">
    <style type="text/css">
        * {
            padding: 0;
            margin: 0;
        }

        /* 加以下代码（高度100%） */
        html, body {
            height: 100%;
        }

        #menu {
            min-height: 100%;
        }

        * html #menu {
            height: 100%;
        }
        .mCSB_inside > .mCSB_container{ margin-right: 0px; }

        .user-info {
            margin: 25px 15px;
            line-height: 45px;
            height: 45px;
        }

        .user-info:after {
            background-color: rgba(255,255,255,0.9);
            content: "";
            display: block;
            left: 10px;
            right: 10px;
            height: 1px;
            position: absolute;
            bottom: 0;
            opacity: 0.1;
        }

        .user-info img {
            width: 45px;
            float: left;
        }

        .user-info span {
            color: #fff;
            font-size: 18px;
            margin-left: 10px;
        }


    </style>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

</head>
<body>

    <div id="menu" >
        <div class="user-info">
            <img src="<%=basepath%>/resources/image/user-icon.png" alt="头像"/>
            <span>${user}</span>
        </div>
        <div>
            ${menu}
        </div>
    </div>


<script src="<%=basepath%>/resources/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="<%=basepath%>/resources/js/plugins/scrollbar/jquery.mCustomScrollbar.js"></script>
<script type="text/javascript" language="javascript">
    $(function () {
        $('.submenu').hover(function(){
            $(this).show()
        },function(){
            $(this).hide()
        });

        $('.m').hover(function(){
            var classN = $(this).find('span')[0].className;
            var $el = $(window.parent.frames['rightfrm'].document);
            $el.find('.submenu').hide()
            $el.find('.submenu').each((i, v) => {
                if($(v).hasClass(classN)) {
                    $(v).show()
                }
            })
        },function(){
            var classN = $(this).find('span')[0].className;
            var $el = $(window.parent.frames['rightfrm'].document);
            setTimeout(() => {
                $el.find('.submenu').each((i, v) => {
                    if($(v).hasClass(classN) && !$(v).hasClass('hovering')) {
                        $(v).hide();
                    }
                })
            }, 300)
        });

        $('#menu a').click(function () {
            if ($(this).attr('href') != "javascript:") {
                $('#menu a').removeClass('select');
                $(this).addClass('select');
            }
        });
    });
</script>
</body>
</html>